﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Draw</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
html,body { 
	/* Default Font */
	font-family: 宋体, Arial, Helvetica, sans-serif;
	font-size: 10pt;
}
</style>

</head>

<body>
<P>
<TABLE style="BORDER-COLLAPSE: collapse" border=1 cellSpacing=0 
borderColor=#000000 cellPadding=1 width=800>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>定义</FONT></P></TD>
    <TD width=680><FONT size=2><STRONG><FONT color=#0000ff>C++：</FONT></STRONG><br>void Draw(int idx, int x, int y, xge::Surface* sf = NULL);<br>void DrawEx(int idx, int x, int y, int cx, int cy, int cw, int ch, xge::Surface* sf = NULL);<br>void 
      Draw_Add(int idx, int x, int y, int mul = 
           255, xge::Surface* sf = 
                            NULL);<br>void DrawEx_Add(int idx, int x, int y, int cx, int cy, int cw, int ch, int mul = 255, xge::Surface* sf = NULL);<br>void Draw_Alpha(int idx, int x, int y, xge::Surface* sf = NULL);<br>void DrawEx_Alpha(int idx, int x, int y, int cx, int cy, int cw, int ch, xge::Surface* sf = NULL);<br>void Draw_Alpha2(int idx, int x, int y, int a, xge::Surface* sf = NULL);<br>void DrawEx_Alpha2(int idx, int x, int y, int cx, int cy, int cw, int ch, int a, xge::Surface* sf = NULL);<br>void Draw_And(int idx, int x, int y, xge::Surface* sf = NULL);<br>void DrawEx_And(int idx, int x, int y, int cx, int cy, int cw, int ch, xge::Surface* sf = NULL);<br>void Draw_Or(int idx, int x, int y, xge::Surface* sf =                                                                         NULL);<br>void DrawEx_Or(int idx, int x, int y, int cx, int cy, int cw, int ch, xge::Surface* sf = NULL);<br>void Draw_PSet(int idx, int x, int y, xge::Surface* sf = NULL);<br>void DrawEx_PSet(int idx, int x, int y, int cx, int cy, int cw, int ch, xge::Surface* sf = NULL);<br>void Draw_Xor(int idx, int x, int y, xge::Surface* sf = NULL);<br>void DrawEx_Xor(int idx, int x, int y, int cx, int cy, int cw, int ch, xge::Surface* sf = NULL);<br>void Draw_Gray(int idx, int x, int y, xge::Surface* sf = NULL);<br>void DrawEx_Gray(int idx, int x, int y, int cx, int cy, int cw, int ch, xge::Surface* sf = NULL);<br>void Draw_Mirr(int idx, int x, int y, int flag, xge::Surface* sf = NULL);<br>void DrawEx_Mirr(int idx, 
      int x, int y, int cx, int cy, int cw, int ch, int flag, xge::Surface* sf =   
                                          NULL);<br>void Draw_Custom(int idx, int x, int y, xge_custom_func bk, void* param, xge::Surface* sf = NULL);<br>void DrawEx_Custom(int idx, int x, int y, int cx, int 
      cy, int cw, int ch, xge_custom_func bk, void* param, xge::Surface* sf =          
                                       NULL);<br>void Draw_Blend(int idx, int x, int y, xge_blend_func bk, int param, xge::Surface* sf = NULL);<br>void DrawEx_Blend(int idx, int x, int y, int cx, int 
      cy, int cw, int ch, xge_blend_func bk, int param, xge::Surface* sf =          
                                       NULL);<br><br><STRONG><FONT color=#0000ff>FreeBasic：</FONT></STRONG><br>Function Draw(idx As Integer, x As Integer, y As Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function DrawEx(idx As Integer, x As Integer, y As Integer, cx As Integer, cy As Integer, cw As Integer, ch As Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function Draw_Add(idx As Integer, x As Integer, y As Integer, mul As Integer = 255, sf As xge.Surface Ptr = NULL) As Integer<br>Function DrawEx_Add(idx As Integer, x As Integer, y As Integer, cx As Integer, cy As Integer, cw As Integer, ch As Integer, mul As Integer = 255, sf As xge.Surface Ptr = NULL) As Integer<br>Function Draw_Alpha(idx As Integer, x As Integer, y As Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function DrawEx_Alpha(idx As Integer, x As Integer, y As Integer, cx As Integer, cy As Integer, cw As Integer, ch As Integer, sf As xge.Surface Ptr =  NULL) As Integer<br>Function Draw_Alpha2(idx As Integer, x As Integer, y As Integer, a As  Integer, sf As xge.Surface Ptr =  NULL) As Integer<br>Function DrawEx_Alpha2(idx As Integer, x As Integer, y As Integer, cx As Integer, cy As Integer, cw As Integer, ch As Integer, a As  Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function Draw_And(idx As Integer, x As Integer, y As Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function DrawEx_And(idx As Integer, x As Integer, y As Integer, cx As Integer, cy As Integer, cw As Integer, ch As Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function Draw_Or(idx As Integer, x As Integer, y As Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function DrawEx_Or(idx As Integer, x As Integer, y As Integer, cx As Integer, cy As Integer, cw As Integer, ch As Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function Draw_PSet(idx As Integer, x As Integer, y As Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function DrawEx_PSet(idx As Integer, x As Integer, y As Integer, cx As Integer, cy As Integer, cw As Integer, ch As Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function Draw_Xor(idx As Integer, x As Integer, y As Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function DrawEx_Xor(idx As Integer, x As Integer, y As Integer, cx As Integer, cy As Integer, cw As Integer, ch As Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function Draw_Gray(idx As Integer, x As Integer, y As Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function DrawEx_Gray(idx As Integer, x As Integer, y  As Integer, cx As Integer, cy As Integer, cw As Integer, ch As Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function Draw_Mirr(idx As Integer, x As Integer, y As Integer, flag As Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function DrawEx_Mirr(idx As Integer, x As Integer, y  As Integer, cx As Integer, cy As Integer, cw As Integer, ch As Integer, flag As Integer, sf As xge.Surface Ptr = NULL) As Integer<br>Function Draw_Custom(idx As Integer, x As Integer, y As Integer, bk As Any Ptr, param As Any Ptr = NULL, sf As xge.Surface Ptr = NULL) As Integer<br>Function DrawEx_Custom(idx As Integer, x As Integer, y As Integer, cx As Integer, cy As Integer, cw As Integer, ch As Integer, bk As Any Ptr, param As Any Ptr = NULL, sf As xge.Surface Ptr = NULL) As Integer<br>Function Draw_Blend(idx As Integer, x As Integer, y As Integer, bk As Any Ptr, param As Integer = 0, sf As xge.Surface Ptr = NULL) As Integer<br>Function DrawEx_Blend(idx As Integer, x As Integer, y As Integer, cx As Integer, cy As Integer, cw As Integer, ch As Integer, bk As Any Ptr, param As Integer = 0, sf As xge.Surface Ptr = NULL) As Integer<br><br><STRONG><FONT color=#0000ff>SDK_C：</FONT></STRONG><br>暂未公布<br><br><STRONG><FONT color=#0000ff>SDK_BASIC：</FONT></STRONG><br>暂未公布<br><br><STRONG><FONT color=#0000ff>SDK_Pascal：</FONT></STRONG><br>暂未公布<br><br><STRONG><FONT color=#0000ff>SDK_易语言：</FONT></STRONG><br>暂未公布<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>功能</FONT></P></TD>
    <TD width=680><FONT size=2><br>根据指定的图像 idx 将图像绘制到场景或另一幅图像中。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>参数</FONT></P></TD>
    <TD width=680><FONT size=2><br><STRONG><FONT color=#0000ff>idx：</FONT></STRONG><br>图像索引。<br><br>其他参数请参考：<br><A 
      href="../Surface/Draw.htm">xge::Surface.Draw</A>。<br><A 
      href="../Surface/Custom.htm">xge::Surface.Draw_Custom</A>。<br><A 
      href="../Surface/Blend.htm">xge::Surface.Draw_Blend</A>。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>返回值</FONT></P></TD>
    <TD width=680><FONT size=2><br>成功返回 -1[True] 失败返回 0[False]。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>补充说明</FONT></P></TD>
    <TD width=680><FONT size=2><br>无。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>使用范例</FONT></P></TD>
    <TD width=680><FONT size=2><br><STRONG><FONT color=#0000ff>C++：</FONT></STRONG><br>无范例。<br><br><STRONG><FONT color=#0000ff>FreeBasic：</FONT></STRONG><br>无范例。</FONT></TD></TR></TABLE></P></BODY></HTML>